package com.webapp.org.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.webapp.org.bean.ResultDateBean;
import com.webapp.org.dao.ResultDateDAO;
import com.webapp.org.interfaces.IResultDate;

@Service("resultdateservice")
public class ResultDateService implements IResultDate
{
	private ResultDateDAO resultDateDAO = new ResultDateDAO();

	@Override
	public boolean insertResultDate(ResultDateBean resultDateBean)
	{
		boolean result = resultDateDAO.insertResultDate(resultDateBean);
		return result;
	}

	@Override
	public boolean updateResultDate(ResultDateBean resultDateBean)
	{
		boolean result = resultDateDAO.updateResultDate(resultDateBean);
		return result;
	}

	@Override
	public boolean deleteResultDate(int resultDateId)
	{
		boolean result = resultDateDAO.deleteResultDate(resultDateId);
		return result;
	}

	@Override
	public List<ResultDateBean> retrieveResultDate()
	{
		List<ResultDateBean> resultList = resultDateDAO.retrieveResultDate();
		return resultList;
	}

	@Override
	public ResultDateBean getResultDate(int resultDateId)
	{
		ResultDateBean resultDateBean = resultDateDAO
				.getResultDate(resultDateId);
		return resultDateBean;
	}

}
